package com.zking.dao.mapper.lsc;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.zking.dao.domain.CollectionPosition;
import com.zking.dao.domain.Information;
import com.zking.dao.domain.Post;
@Repository
public interface UserDao {
	//插入一条数据
	public int save(Information information);

	////通过id查询这条数据
	public Post selectUserById(int id);

	//通过id查询一条数据
	public Information selectId(int id);

	//查询集合(查询全部)
	public List<Post> mw();
	//查询集合(查询全部)
		public List<Information> gs();


	//查询集合(查询地区)
	public List<Information> mn(String com_city);
	
	
	//通过id收藏一条职位
	public CollectionPosition sc(int userid);
	
	//查
	public List<Post> sj();
	
	//查一条
	public Post idxs(Post a);
	
	//增加一条
	public int zj(CollectionPosition collectionPosition);
	
	//查询
	public List<CollectionPosition> zp();
	
	//查询一条
	public  CollectionPosition gf(int userid);
	
	
	//删除
	
	public int gl(int userid );
	
	//userid查询
	public List<CollectionPosition> zp1(int userid);
	
	//删除
		public int nl(int id );
	
		public Post getpostone(Integer id);
		
		public Information getInformationone(Integer id);
		
		//查询收藏表里的一条数据
		public CollectionPosition getCollectionPosition(Integer userid, Integer postid);
		
		public int deletecp(Integer id);
}
